package com.lanxiao.cloud.common.web.validation;

import com.lanxiao.cloud.common.core.utils.StringUtils;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * @author ：qiaoliang
 * @date ：2021-08-19
 */
public class PatternsInvalidImpl implements ConstraintValidator<PatternsInvalid,Object> {
  @Override
  public boolean isValid(Object o, ConstraintValidatorContext constraintValidatorContext) {
    return StringUtils.matchDomain(o.toString().trim());
  }
}
